<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>个人中心</title>
  <style>
    .title{
      width: 1200px;
      height: 200px;
      margin: 0 auto;
      background-image: url(../static/images/5.jpg);
      background-size:100%;
    }
    .title-left{
      display:inline-block;
      float: left;
      padding-left: 100px;
      padding-top: 100px;
      font-size: 30px;
      color:orange
    }
    .title-right{
      display:inline-block;
      float: right;
      padding-top: 50px;
      padding-right: 100px;
    }
    .title-box{
      width: 150px;
      height: 100px;
      background-color: white;
      margin-top: 10px;
      font-size: 40px;
      text-align: center;
      line-height: 100px;
      color: red;
    }
    .title-font{
      width: 150px;
      height: 30px;
      background-color: white;
      font-size: 6px;
      text-align: center;
    }
    .main-body{
      width: 1200px;
      height: 200px;
      margin: 0 auto;
    }
    .body-left{
      width: 150px;
      height: auto;
      display:inline-block;
      float: left;
    }
    .body-right{
      width: 1000px;
      height: 600px;
      display:inline-block;
      float: right;
    }
    .table-line{
      height: 50px;
      margin: 0px;
      padding-top: 30px;
      text-align: center;
      border-bottom: solid rgba(0, 0, 0, .3);
    }
    a{
      color: black;
    }
    a:hover{
      color: #d58512;
    }
    .form-box{
      width: 300px;
      height: 300px;
      margin: 50px auto;
    }
    input{
      width: 200px;
      height: 30px;
    }
  </style>
</head>
<body>
  <div class="title">
    <div>
      <div class="title-left">{{ uname }} <span>&nbsp;&nbsp;<a href="#" style="text-decoration: none;font-size: 15px">修改</a></span></div>
      <div class="title-right">
        <div class="title-font">关注的房源</div>
        {% if  tenant.house %}
          <div class="title-box">1</div>
        {% else %}
          <div class="title-box">0</div>
        {% endif %}
      </div>
    </div>
  </div>
  <div class="main-body">
    <div class="body-left">
      <p class="table-line"><a href="/" style="text-decoration: none;">首页</a></p>
      <p class="table-line" style="background-color: #fbb100"><a href="/contract" style="text-decoration: none;">合同查询</a></p>
      <p class="table-line"><a href="/followhouse" style="text-decoration: none;">关注的房源</a></p>
      <p class="table-line"><a href="/person" style="text-decoration: none;">设置</a></p>
    </div>
    <div class="body-right">
      <p style="font-size: 23px">查询合同</p>
      <hr>
      <div class="form-box">
        <form action="get_contract" method="get">
          <p>订单号:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="contractId"></p>
          <p><button type="submit" style="width: 200px; height:50px; background-color: #fbb100">提交</button></p>
        </form>
        {% if data %}
          <table border="1px" style="width:400px;height:50px;text-align:center">
            <tr>
              <th>合同编号</th>
              <th>房东</th>
              <th>租客</th>
              <th>房租</th>
            </tr>
            <tr>
              <td>{{ data.contractId }}</td>
              <td>{{ data.landlord }}</td>
              <td>{{ data.tenant }}</td>
              <td>{{ data.price }}</td>
            </tr>
          </table>
        {% endif %}
      </div>
    </div>
  </div>

</body>
</html>




